<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

//页面直接工作显示信息,只能提交，不能修改
//$this->registerJsFile('@web/home/user/js/jquery.min.js',['depends'=>['app\assets\AppAsset']]);
?>
<div class="tpl-content-wrapper">
    <div class="tpl-content-page-title">
        工作申请
    </div>
    <ol class="am-breadcrumb">
        <li><a href="<?php echo \yii\helpers\Url::toRoute(['index/index']);?>" class="am-icon-home">首页</a></li>
        <li><a href="<?php echo \yii\helpers\Url::toRoute(['user/index']);?>">后台</a></li>
        <li class="am-active">工作申请</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="portlet-title">
            <div class="caption font-green bold">
                <span class="am-icon-code"></span> 工作申请
            </div>
            <div class="tpl-portlet-input tpl-fz-ml">
                <div class="portlet-input input-small input-inline">
                    <div class="input-icon right">
                        <i class="am-icon-search"></i>
                        <input type="text" class="form-control form-control-solid" placeholder="搜索..."></div>
                </div>
            </div>

        </div>

        <div class="tpl-block ">
            <div class="am-g tpl-amazeui-form">
                <div class="am-u-sm-12 am-u-md-9">
                    <?php $form = ActiveForm::begin([
                        'id' => 'login-form',
                        'method' => 'post',
                        'options' => ['class' => "am-form am-form-horizontal"],
                        'enableClientValidation' => true,
                        'fieldConfig' => [
                            'template' => "<div class=\"col-lg-5\">{input}</div>",
                        ]
                    ]) ?>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">工作ID:</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($job, 'id')->textInput(['placeholder' => '工作ID', 'class' => 'col-sm-6','readonly'=>'true'])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label  class="am-u-sm-3 am-form-label">工作名称:</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($job, 'name')->textInput(['class' => 'col-sm-6', 'placeholder' => '工作名称','readonly'=>'true'])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">联系方式：</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($job, 'telephone')->textInput(['class' => 'col-sm-6', 'placeholder' => '联系方式','readonly'=>'true'])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">具体工作时间:</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($job, 'jobtime')->textInput(['class' => 'col-sm-6','placeholder' => "具体工作时间",'readonly'=>'true'])->label(false); ?>
                        </div>
                    </div>


                    <div class="am-form-group">
                        <label class="am-u-sm-3 am-form-label">具体工作地点:</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($job, 'address')->textInput(['class' => 'col-sm-6','placeholder' => "具体工作地点",'readonly'=>'true'])->label(false); ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-intro" class="am-u-sm-3 am-form-label">工作具体要求:</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($job, 'request')->textarea(['class' => 'col-sm-6', 'placeholder' => "工作具体要求",'readonly'=>'true' ,'rows' => "5"])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-intro" class="am-u-sm-3 am-form-label">用户备注：</label>
                        <div class="am-u-sm-9">
                            <?php echo $form->field($job, 'message')->textarea(['class' => 'col-sm-6', 'placeholder' => "输入你的备注信息", 'rows' => "5"])->label(false) ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-3">
                            <?php echo Html::submitButton('提交申请', ['class' => 'am-btn am-btn-primary', 'name' => 'submit-button']) ?>
                        </div>
                    </div>
                    <?php ActiveForm::end(); ?>
                </div>
            </div>
        </div>
    </div>
</div>